CMAKE_MINIMUM_REQUIRED (VERSION 2.6)
PROJECT (createTiles)

FIND_PACKAGE (ITK REQUIRED)
IF (ITK_FOUND)
  INCLUDE (${ITK_USE_FILE})
ELSE(ITK_FOUND)
  MESSAGE (FATAL_ERROR
           "Cannot build without ITK. Please set ITK_DIR")
ENDIF (ITK_FOUND)

#IF(WIN32)
	#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /openmp")
#ELSE(WIN32)
	#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopenmp")
#ENDIF(WIN32)

ADD_EXECUTABLE (createTiles tvMosaicParam.h tvMosaicParam.cxx createTiles.cxx)
TARGET_LINK_LIBRARIES (createTiles ${ITK_LIBRARIES})
